package com.test.mall.ware.feign;

import com.test.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("product")
public interface ProductFeignService {
    /**
     * /product/skuinfo/info/{skuId}后台直接处理
     * /api/product/skuinfo/info/{skuId}所有请求过网关
     * 两种写法
     * @param skuId
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

}
